﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Mobile.Master" CodeBehind="AddQuestion_mobile.aspx.vb" Inherits="BooksReviewApp.AddQuestion_mobile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div data-role="content">  
    <div data-role="header">
    <h2>Add Question</h2>
  </div><!-- /header -->
        <table>
            <tr>
                <td>
                    Book
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Book" runat="server" DataSourceID="SqlDataSource2"
                        DataTextField="BookName" DataValueField="ID" AutoPostBack="True"
                        AppendDataBoundItems="True">
                        <asp:ListItem Selected="True" Value="0">Select Book</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BooksReviewDBConnectionString1 %>" SelectCommand="SELECT [ID], [BookName], [IsVerified] FROM [Books] WHERE IsVerified = 1"></asp:SqlDataSource>
                </td>
            </tr>
            
            <tr>
                <td>
                    Chapter </td>
                <td>
                    <asp:DropDownList ID="ddl_Chapter" runat="server" AutoPostBack="True">
                        <asp:ListItem Selected="True" Value="0">Select Chapter</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Question(Number)
                </td>
                <td>
                    <asp:DropDownList ID="ddl_QuestionNumber" runat="server" Enabled="false" AutoPostBack="True">
                        <asp:ListItem Selected="True" Value="0">Select Question</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Question(Text)
                </td>
                <td>
                    <asp:TextBox ID="tb_Question" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="tb_Question" CssClass="field-validation-error"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td>
                    Provide Solution</td>
                <td>
                    <asp:RadioButtonList ID="rbl_Solution" runat="server" 
                        RepeatDirection="Horizontal" AutoPostBack="True">
                        <asp:ListItem  Value="1">Yes</asp:ListItem>
                        <asp:ListItem Selected="True" Value="0">No</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    Solution</td>
                <td>
                    <asp:TextBox ID="tb_Solution" runat="server" TextMode="MultiLine" Enabled="false"></asp:TextBox>
                </td>
            </tr>
             
        </table>
        <asp:Button ID="btn_AddQuestion" runat="server" Text="Add Question" CssClass="m-btn blue" />
   



    </div>
</asp:Content>
